home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / amiga / bmake15.lzh / INCL-Makefile < prev    next >
Makefile  |  1991-06-22  |  628b  |  40 lines

  1. #    Test the .include directive.
  2. #
  3.  
  4. ifdef(INCLUDE)
  5. .INCLUDE TEST-Makefile
  6. else
  7. first:
  8.     @echo "TEST-Makefile was not included!"
  9. endif
  10.  
  11. foobar:
  12.     @echo "Let's see if the WILD variable is still here..."
  13.     @echo "$(WILD)"
  14.  
  15. .DEFAULT:
  16.     @echo "$@ has no rule, so we use the .DEFAULT rule"
  17.  
  18. # BART := simpson
  19. CO := co
  20. %.c : RCS/%.c,v
  21.     $(CO) -u $@
  22.  
  23. PAT := $(patsubst pre%post,a%b,dogfood preAApost)
  24.  
  25. rcstest: foobar.c ugly.none
  26.     if def(BART)
  27.     @echo "don't have a cow, man!"
  28.     else
  29.     @echo "foobar.c check out by RCS"
  30.     endif
  31.     @echo "$(PAT)"
  32.  
  33.  
  34. exists:
  35.     if exists(foobar.c)
  36.         @echo "foobar.c exists"
  37.     else
  38.         @echo "foobar.c doesn't exist"
  39.     endif
  40.